 #OMP_NUM_THREADS=256 OMP_PROC_BIND=true OMP_PLACES=cores numactl -N 8-15 .././Benchmark_BlkIntl_ComplexGemv.bin >& Threads_256DDR8.log
 #OMP_NUM_THREADS=32  mpirun --allow-run-as-root -n 2 -bind-to numa --report-bindings numactl -N 0-1 -m 16-17 .././Benchmark_BlkIntl_ComplexGemv_MPI.bin 2>&1 | tee Threads32_Lmax128_hbm2.log
 #OMP_NUM_THREADS=32  mpirun --allow-run-as-root -n 4 -bind-to numa --report-bindings numactl -N 0-3 -m 16-19 .././Benchmark_BlkIntl_ComplexGemv_MPI.bin 2>&1 | tee Threads32_Lmax128_hbm4.log
 #OMP_NUM_THREADS=32  mpirun --allow-run-as-root -n 8 -bind-to numa --report-bindings numactl -N 0-7 -m 16-23 .././Benchmark_BlkIntl_ComplexGemv_MPI.bin 2>&1 | tee Threads32_Lmax128_hbm8.log
 #OMP_NUM_THREADS=32  mpirun --allow-run-as-root -n 16 -bind-to numa --report-bindings numactl -N 0-15 -m 16-31 .././Benchmark_BlkIntl_ComplexGemv_MPI.bin 2>&1 | tee Threads32_Lmax128_hbm16.log
  #OMP_NUM_THREADS=32  OMP_PROC_BIND=true OMP_PLACES=cores   mpirun --allow-run-as-root -n 16 -bind-to numa --report-bindings numactl -N 0-15 -m 16-31 .././Benchmark_BlkIntl_ComplexGemv_MPI.bin 2>&1 | tee Threads32_Lmax128_hbm16.log2
#  mpirun --allow-run-as-root -np 1  --report-bindings  --rankfile rankfile_1numa -x OMP_NUM_THREADS=32 -x OMP_WAIT_POLICY=active -x OMP_PROC_BIND=close run_hbm.sh 1
#  mpirun --allow-run-as-root -np 2  --report-bindings  --rankfile rankfile_2numa -x OMP_NUM_THREADS=32 -x OMP_WAIT_POLICY=active -x OMP_PROC_BIND=close run_hbm.sh 2
#  mpirun --allow-run-as-root -np 4  --report-bindings  --rankfile rankfile_4numa -x OMP_NUM_THREADS=32 -x OMP_WAIT_POLICY=active -x OMP_PROC_BIND=close run_hbm.sh 4
#  mpirun --allow-run-as-root -np 8  --report-bindings  --rankfile rankfile_8numa -x OMP_NUM_THREADS=32 -x OMP_WAIT_POLICY=active -x OMP_PROC_BIND=close run_hbm.sh 8
thread=12
mpi=8
#for thread in 1 2 4 8 16 24 32 38
for thread in  24 32 38
#for thread in  24 32 38
do
 sh generate_rank.sh $thread $mpi;mpirun --allow-run-as-root -np $mpi  --report-bindings  --rankfile rankfile -x OMP_NUM_THREADS=$thread -x OMP_WAIT_POLICY=active -x OMP_PROC_BIND=close run_hbm.sh $thread $mpi 
# sh generate_rank.sh $thread $mpi;mpirun --allow-run-as-root -np $mpi  --report-bindings  --rankfile rankfile -x OMP_NUM_THREADS=$thread -x OMP_WAIT_POLICY=active -x OMP_PROC_BIND=close run_ddr.sh $thread $mpi 
done
